import request from "@/utils/request";

export function article_list(query) {
  //分页查询
  return request({
    url: "/api/article/list",
    method: "post",
    data: query
  });
}
export function article_edit(query) {
  //修改
  return request({
    url: "/api/article/edit",
    method: "post",
    data: query
  });
}
export function article_updateTopStatus(query) {
  //批量置顶或取消置顶Article
  return request({
    url: "/api/article/updateTopStatus",
    method: "post",
    data: query
  });
}
export function article_save(query) {
  //新增Article
  return request({
    url: "/api/article/save",
    method: "post",
    data: query
  });
}
export function article_findById(query) {
  return request({
    url: "/api/article/findById",
    method: "post",
    data: query
  });
}
export function article_deleteAll(query) {
  return request({
    url: "/api/article/deleteAll",
    method: "post",
    data: query
  });
}
//POST /api/article/delete
export function article_delete(query) {
  return request({
    url: "/api/article/delete",
    method: "post",
    data: query
  });
}
